{% extends "index.html" %}

{% block user_status %}{% endblock %}	
{% block content %}
<center><br/>
<div id="register_form" class="roundest">
	{% if form.errors %}
		<p class="errorlist">Registration form has errors. Please fix them.</p><br/>
	{% endif %}
	<form method="post" action="">
		<table>
			<tr><td>{{ form.first_name.label_tag }} </td><td>{{ form.first_name }}</td></tr>
			{% if form.first_name.errors %}<tr><td></td><td>{{ form.first_name.errors }}</td></tr>{%endif%}
			<tr><td>{{ form.last_name.label_tag }}</td><td>{{ form.last_name }}</td></tr>
			{% if form.last_name.errors %}<tr><td></td><td>{{ form.last_name.errors }}</td></tr>{%endif%}
			<tr><td>{{ form.email.label_tag }} </td><td>{{ form.email }}</td></tr>
			{% if form.email.errors %}<tr><td></td><td>{{ form.email.errors }}</td></tr>{%endif%}
			<tr><td>{{ form.username.label_tag }} </td><td>{{ form.username }}</td></tr>
			{% if form.username.errors %}<tr><td></td><td>{{ form.username.errors }}</td></tr>{%endif%}
			<tr><td>{{ form.password.label_tag }} </td><td>{{ form.password }}</td></tr>
			{% if form.password.errors %}<tr><td></td><td>{{ form.password.errors }}</td></tr>{%endif%}
			<tr><td>{{ form.retype_password.label_tag }} </td><td>{{ form.retype_password }}</td></tr>
			{% if form.retype_password.errors %}<tr><td></td><td>{{ form.retype_password.errors }}</td></tr>{%endif%}
		</table>
		<div><input style="padding: 5px 50px 5px 50px; margin-top: 20px" type="submit" value="Register" /></div>
	</form>
</div>
</center>
{% endblock %}